package com.dwxt.cdms.controller;

import com.dwxt.cdms.service.OuFuService;
import com.dwxt.cdms.vo.SelcetHeartCardVo;
import com.dwxt.common.base.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cdms/healthCard")
public class HeartCardController {

    @Autowired
    private OuFuService ouFuService;

    @GetMapping("/selectList")
    private BaseResult selectList(SelcetHeartCardVo selcetHeartCardVo){
        return ouFuService.pageGroup2(selcetHeartCardVo);
    }

    @GetMapping("/selectById")
    private BaseResult selectById(SelcetHeartCardVo selcetHeartCardVo){
        return ouFuService.page(selcetHeartCardVo, selcetHeartCardVo.getCustomerId(), selcetHeartCardVo.getType(),selcetHeartCardVo.getCategory());
    }

}
